// 跨域代理前缀
// const API_PROXY_PREFIX='/API'
// const API_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
const API_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {

  /**
   * 帐号管理
   */
  LOGIN: `${API_URL}/login`,
  LOGOUT: `${API_URL}/logout`,
  GET_ROUTES: `${API_URL}/getRouters`,
  CHANGE_PASSWORD: `${API_URL}/changePassword`,

  /********************************* 系统管理 *********************************/

  /**
   * 控制台
   */
  CONSOLE_GET_STATISTICS_DATA: `${API_URL}/console/getStatisticsData`,

  /**
   * 菜单管理
   */
  MENU_QUERY_PARENT_TREE: `${API_URL}/config/menu/queryParentTree`,
  MENU_QUERY_LIST: `${API_URL}/config/menu/queryList`,
  MENU_QUERY: `${API_URL}/config/menu/query`,
  MENU_ADD: `${API_URL}/config/menu/add`,
  MENU_EDIT: `${API_URL}/config/menu/edit`,
  MENU_DELETE: `${API_URL}/config/menu/delete`,

  /**
   * 组织机构管理
   */
  ORGANIZATION_QUERY_ORGANIZATION_TREE: `${API_URL}/config/organization/queryOrganizationTree`,
  ORGANIZATION_QUERY_PARENT_TREE: `${API_URL}/config/organization/queryParentTree`,
  ORGANIZATION_QUERY_LIST: `${API_URL}/config/organization/queryList`,
  ORGANIZATION_QUERY: `${API_URL}/config/organization/query`,
  ORGANIZATION_ADD: `${API_URL}/config/organization/add`,
  ORGANIZATION_EDIT: `${API_URL}/config/organization/edit`,
  ORGANIZATION_DELETE: `${API_URL}/config/organization/delete`,

  /**
   * 角色管理
   */
  ROLE_QUERY_PERMISSION: `${API_URL}/config/role/queryRolePermission`,
  ROLE_QUERY_ORGANIZATION_TREE: `${API_URL}/config/role/queryOrganizationTree`,
  ROLE_QUERY_PERMISSION_TREE: `${API_URL}/config/role/queryPermissionTree`,
  ROLE_QUERY_DATA_PERMISSION_TREE: `${API_URL}/config/role/queryDataPermissionTree`,
  ROLE_QUERY_LIST: `${API_URL}/config/role/queryList`,
  ROLE_QUERY: `${API_URL}/config/role/query`,
  ROLE_ADD: `${API_URL}/config/role/add`,
  ROLE_EDIT: `${API_URL}/config/role/edit`,
  ROLE_DELETE: `${API_URL}/config/role/delete`,
  ROLE_SET_PERMISSION: `${API_URL}/config/role/setPermission`,

  /**
   * 用户管理
   */
  USER_QUERY_ORGANIZATION_TREE: `${API_URL}/config/user/queryOrganizationTree`,
  USER_QUERY_ROLE_LIST: `${API_URL}/config/user/queryRoleList`,
  USER_QUERY_LIST: `${API_URL}/config/user/queryList`,
  USER_QUERY: `${API_URL}/config/user/query`,
  USER_ADD: `${API_URL}/config/user/add`,
  USER_EDIT: `${API_URL}/config/user/edit`,
  USER_DELETE: `${API_URL}/config/user/delete`,
  USER_RESET_PASSWORD: `${API_URL}/config/user/resetPassword`,

  /**
   * 数据字典分组
   */
  DICT_GROUP_QUERY_LIST: `${API_URL}/config/dictGroup/queryList`,
  DICT_GROUP_QUERY: `${API_URL}/config/dictGroup/query`,
  DICT_GROUP_ADD: `${API_URL}/config/dictGroup/add`,
  DICT_GROUP_EDIT: `${API_URL}/config/dictGroup/edit`,
  DICT_GROUP_DELETE: `${API_URL}/config/dictGroup/delete`,

  /**
   * 数据字典
   */
  DICT_QUERY_BY_GROUP_CODE: `${API_URL}/config/dict/queryDictByGroupCode`,
  DICT_QUERY_LIST: `${API_URL}/config/dict/queryList`,
  DICT_QUERY: `${API_URL}/config/dict/query`,
  DICT_ADD: `${API_URL}/config/dict/add`,
  DICT_EDIT: `${API_URL}/config/dict/edit`,
  DICT_DELETE: `${API_URL}/config/dict/delete`,
  
  /**
   * 参数管理
   */
  SETTING_QUERY_BY_NAME: `${API_URL}/config/setting/querySettingByName`,
  SETTING_QUERY_LIST: `${API_URL}/config/setting/queryList`,
  SETTING_QUERY: `${API_URL}/config/setting/query`,
  SETTING_ADD: `${API_URL}/config/setting/add`,
  SETTING_EDIT: `${API_URL}/config/setting/edit`,
  SETTING_DELETE: `${API_URL}/config/setting/delete`,

  /**
   * 区域管理
   */
  REGION_QUERY_PARENT_LIST: `${API_URL}/config/region/queryParentList`,
  REGION_QUERY_LIST: `${API_URL}/config/region/queryList`,
  REGION_QUERY: `${API_URL}/config/region/query`,
  REGION_ADD: `${API_URL}/config/region/add`,
  REGION_EDIT: `${API_URL}/config/region/edit`,
  REGION_DELETE: `${API_URL}/config/region/delete`,

  /**
   * 数据源管理
   */
  DATA_SOURCE_QUERY_LIST: `${API_URL}/config/dataSource/queryList`,
  DATA_SOURCE_QUERY_TABLE_TREE: `${API_URL}/config/dataSource/queryTableTree`,
  DATA_SOURCE_QUERY_TABLE_TREE_SELECT: `${API_URL}/config/dataSource/queryTableTreeSelect`,
  DATA_SOURCE_BACKUP: `${API_URL}/config/dataSource/backup`,
  DATA_SOURCE_RESTORE: `${API_URL}/config/dataSource/restore`,
  DATA_SOURCE_DELETE: `${API_URL}/config/dataSource/delete`,

  /********************************* 系统日志 *********************************/

  /**
   * 登录日志
   */
  LOG_LOGIN_QUERY_LIST: `${API_URL}/log/logLogin/queryList`,
  LOG_LOGIN_EXPORT_ECXCEL: `${API_URL}/log/logLogin/exportExcel`,

  /**
   * 操作日志
   */
  LOG_OPERATION_QUERY_LIST: `${API_URL}/log/logOperation/queryList`,
  LOG_OPERATION_EXPORT_EXCEL: `${API_URL}/log/logOperation/exportExcel`,
  
  /**
   * 接口调用日志
   */
  LOG_API_QUERY_LIST: `${API_URL}/log/logApi/queryList`,
  LOG_API_EXPORT_EXCEL: `${API_URL}/log/logApi/exportExcel`,

  /********************************* 系统监控 *********************************/

  /**
   * 在线用户
   */
  ONLINE_USER_QUERY_LIST: `${API_URL}/monitor/onlineUser/queryList`,
  ONLINE_USER_DELETE: `${API_URL}/monitor/onlineUser/delete`,
  
  /**
   * 应用监控
   */
  APPLICATION_QUERY_LIST: `${API_URL}/monitor/application/queryList`,

  /********************************* 设备管理 *********************************/

  /**
   * 终端管理
   */
  TERMINAL_QUERY_ORGANIZATION_TREE: `${API_URL}/device/terminal/queryOrganizationTree`,
  TERMINAL_QUERY_GROUP_TREE: `${API_URL}/device/terminal/queryGroupTree`,
  TERMINAL_QUERY_GROUP_TREE_SELECT: `${API_URL}/device/terminal/queryGroupTreeSelect`,
  TERMINAL_QUERY_CITY_SELECT: `${API_URL}/device/terminal/queryCitySelect`,
  TERMINAL_QUERY_LIST: `${API_URL}/device/terminal/queryList`,
  TERMINAL_QUERY: `${API_URL}/device/terminal/query`,
  TERMINAL_EDIT: `${API_URL}/device/terminal/edit`,
  TERMINAL_BATCH_EDIT: `${API_URL}/device/terminal/batchEdit`,
  TERMINAL_DELETE: `${API_URL}/device/terminal/delete`,
  TERMINAL_SEND_MESSAGE: `${API_URL}/device/terminal/sendMessage`,
  TERMINAL_EXPORT:`${API_URL}/device/terminal/exportExcel`,
  TERMINAL_IMPORT:`${API_URL}/device/terminal/importExcel`,
  
  TERMINAL_QUERY_VOLUME_SETTING: `${API_URL}/device/terminal/queryVolumeSetting`,
  TERMINAL_QUERY_VOLUME: `${API_URL}/device/terminal/queryVolume`,
  TERMINAL_QUERY_DISPLAY_TYPE_SETTING: `${API_URL}/device/terminal/queryDisplayTypeSetting`,
  TERMINAL_QUERY_DISPLAY_TYPE: `${API_URL}/device/terminal/queryDisplayType`,
  TERMINAL_QUERY_SCREENSHOT: `${API_URL}/device/terminal/queryScreenshot`,
  TERMINAL_QUERY_COMMAND_SETTING: `${API_URL}/device/terminal/queryCommandSetting`,

  /**
   * 终端指令
   */
  // 设置音量
  TERMINAL_COMMAND_SET_VOLUME: `${API_URL}/device/command/setVolume`,
  // 设置显示方式
  TERMINAL_COMMAND_SET_DISPLAY_TYPE: `${API_URL}/device/command/setDisplayType`,
  // 拉取音量
  TERMINAL_COMMAND_QUERY_VOLUME: `${API_URL}/device/command/queryVolume`,
  // 拉取显示方式
  TERMINAL_COMMAND_QUERY_DISPLAY_TYPE: `${API_URL}/device/command/queryDisplayType`,
  // 拉取截屏
  TERMINAL_COMMAND_PULL_SCREENSHOT: `${API_URL}/device/command/pullScreenshot`,

  /**
   * 终端分组管理
   */
  GROUP_QUERY_ORGANIZATION_TREE: `${API_URL}/device/group/queryOrganizationTree`,
  GROUP_QUERY_PARENT_TREE: `${API_URL}/device/group/queryParentTree`,
  GROUP_QUERY_LIST: `${API_URL}/device/group/queryList`,
  GROUP_QUERY: `${API_URL}/device/group/query`,
  GROUP_ADD: `${API_URL}/device/group/add`,
  GROUP_EDIT: `${API_URL}/device/group/edit`,
  GROUP_DELETE: `${API_URL}/device/group/delete`,

  /********************************* 设备日志 *********************************/

  /**
   * 操作日志
   */
  LOG_DEVICE_OPERATION_QUERY_ORGANIZATION_TREE: `${API_URL}/logDevice/logDeviceOperation/queryOrganizationTree`,
  LOG_DEVICE_OPERATION_QUERY_LIST: `${API_URL}/logDevice/logDeviceOperation/queryList`,
  LOG_DEVICE_OPERATION_EXPORT_EXCEL: `${API_URL}/logDevice/logDeviceOperation/exportExcel`,

  /**
   * 连接日志
   */
  LOG_DEVICE_CONNECT_QUERY_ORGANIZATION_TREE: `${API_URL}/logDevice/logDeviceConnect/queryOrganizationTree`,
  LOG_DEVICE_CONNECT_QUERY_LIST: `${API_URL}/logDevice/logDeviceConnect/queryList`,
  LOG_DEVICE_CONNECT_EXPORT_EXCEL: `${API_URL}/logDevice/logDeviceConnect/exportExcel`,

  /**
   * 推送日志
   */
  LOG_DEVICE_PUSH_QUERY_ORGANIZATION_TREE: `${API_URL}/logDevice/logDevicePush/queryOrganizationTree`,
  LOG_DEVICE_PUSH_QUERY_LIST: `${API_URL}/logDevice/logDevicePush/queryList`,
  
  /********************************* 文件上传 *********************************/

  UPLOAD_FILE_GET_SIGNED_UPLOAD_FILE_URL: `${API_URL}/file/uploadFile/getSignedUploadFileUrl`,
  UPLOAD_FILE_GET_SIGNED_UPLOAD_FILE_URL_ORIGIN_NAME: `${API_URL}/file/uploadFile/getSignedUploadFileUrlOriginName`,
  
}